home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / BLHLINE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  1.2 KB  |  62 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // BlazeClass
  8. //
  9.  
  10. #include "fli.h"
  11. #include "colors.h"
  12.  
  13. #ifdef __BCPLUSPLUS__
  14. #pragma hdrstop
  15. #endif
  16.  
  17. extern int HelpSystemAvailable;
  18. extern int DisabledHelp;
  19.  
  20. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  21. //
  22. // HelpLine()
  23. //
  24. // Displays help on the bottom of the screen
  25. //
  26. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  27.  
  28. void BlazeClass::HelpLine(int FusionHelp,char *HelpText)
  29. {
  30.   BlazeClass Blaze;
  31.  
  32.   Blaze.EraseArea(0,Blaze.WhatHeight()-1,Blaze.WhatWidth(),1,
  33.     Colors.PromptLineNormal);
  34.  
  35.   !Blaze;
  36.   +Blaze;
  37.  
  38.   if (!DisabledHelp)
  39.   {
  40.     Blaze (9,Blaze.WhatHeight()-1)
  41.       << Colors.PromptLineNormal
  42.       << '\xb3';
  43.  
  44.     if (FusionHelp && HelpSystemAvailable)
  45.     {
  46.       Blaze (1,Blaze.WhatHeight()-1)
  47.         << Colors.PromptLineBold
  48.         << "F1"
  49.         << MoveRight
  50.         << Colors.PromptLineNormal
  51.         << "Help";
  52.     }
  53.   }
  54.  
  55.   if (HelpText)
  56.   {
  57.     Blaze ((DisabledHelp)?1:11,Blaze.WhatHeight()-1)
  58.       << Colors.PromptLineNormal
  59.       << HelpText;
  60.   }
  61. }
  62.